package com.cgx.service;

import com.cgx.vo.websocket.MqMessageVo;
import com.cgx.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient("live-chat-web-webSocket")
public interface WebsocketService {

    @GetMapping(value = "/live-chat/websocket/sendMessage", consumes = MediaType.APPLICATION_JSON_VALUE)
    Map<String, ResultVo> sendMessage(@RequestBody MqMessageVo mqMessageVo);
}
